<h2>Tipos de Cuidado y Mantenimiento</h2>

<% if @cultural_heritage_care_and_maintenance_type.size == 0   %>
  <p>Ningún Tipo de Cuidado y Mantenimiento encontrado</p>
<%else%>

<%#*<table>%>
  <%#*<tr>%>
    <%#*<th>Name</th>%>
    <%#*<th>Description</th>%>
    <%#*<th></th>%>
    <%#*<th></th>%>
    <%#*<th></th>%>
  <%#*</tr>%>

<%# @cultural_heritage_care_and_maintenance_types.each do |cultural_heritage_care_and_maintenance_type| %>
  <%#*<tr>%>
    <%#*<td><%= cultural_heritage_care_and_maintenance_type.name %>
    <%#*<td><%= cultural_heritage_care_and_maintenance_type.description %>
    <%#*<td><%= link_to 'Show', cultural_heritage_care_and_maintenance_type %>
    <%#*<td><%= link_to 'Edit', edit_cultural_heritage_care_and_maintenance_type_path(cultural_heritage_care_and_maintenance_type) %>
    <%#*<td><%= link_to 'Destroy', cultural_heritage_care_and_maintenance_type, :confirm => 'Are you sure?', :method => :delete %>
  <%#*</tr>%>
<%# end %>
<%#*</table>%>

<%#*<br />%>





<% form_tag url_for(:action=>"update_table"),{:id => "care_and_maintenances_type_form_search" } do -%>

    <%#*<p class="two-col"><label>Buscar:</label><%= text_field_tag "search_id" %>
    <%#*<p class="two-col"><label>Patrimonio:</label><%= select_tag "search_incidence_cultural_heritage_id", options_for_select(@lista_select.collect {|t| [t.name, t.id]}),:include_blank=>"Seleccione" %>

    <%#*<input class="button" name="Buscar" value="Buscar" type="submit" />%>
    <%#*<span id="loading_search" style="display:none"></span>%>
<% end %>

<div id="care_and_maintenances_type_table">
    <%= render :partial=>"table" %>
</div>

<br />

<%end%>


<%= link_to 'Nuevo', new_cultural_heritage_care_and_maintenance_type_path %>
